package com.ChengXiZi.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * 通知表视图VO
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Notice视图对象", description = "通知表视图VO")
public class NoticeVO {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("被通知用户id")
    private Long userId;

    @ApiModelProperty("通知类型")
    private Integer type;

    @ApiModelProperty("关联触发对象")
    private Long sourceId;

    @ApiModelProperty("通知内容摘要")
    private String content;

    @ApiModelProperty("是否已读")
    private Integer isRead;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("通知时间")
    private LocalDateTime createTime;
}